package com.example.newspublish.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@TableName("news")
public class News implements Serializable {

    @TableId
    private Long id;

    @TableField("title")
    private String title;

    @TableField("author")
    private String author;

    @TableField("category_id")
    private Long categoryId;

    @TableField("create_time")
    private Timestamp createTime;

    @TableField("cover_image")
    private String coverImage;

    @TableField("content")
    private String content;


}
